-- GENERATED SPELL FOR [Blacksilt Tidecaller] --


function spell0_17327(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17327', 0, 1)
end

function spell1_17327(pUnit, Event) --@Rejuvenation,Heal--
pUnit:FullCastSpellOnTarget(12160,pUnit)
pUnit:RegisterEvent('Sorts_17327', 12000, 1)
end

function Sorts_17327(pUnit, Event)
local choix_sorts_17327 = math.random(0, 1)
if choix_sorts_17327 == 0 then
pUnit:RegisterEvent('spell0_17327', 1, 1)
end
if choix_sorts_17327 == 1 then
pUnit:RegisterEvent('spell1_17327', 1, 1)
end
end

function mob17327_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17327', math.random(1500, 3000), 1)
end

function mob17327_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17327_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17327_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17327, 1, 'mob17327_Action')
RegisterUnitEvent(17327, 2, 'mob17327_Leave')
RegisterUnitEvent(17327, 3, 'mob17327_Kill')
RegisterUnitEvent(17327, 4, 'mob17327_Die')
